package com.qf.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import com.qf.bean.Student;
import com.qf.dao.StudentDao;

/**
 * 2019/12/3
 * 键盘敲烂，月薪过万
 * 登高必自卑，行远必自迩。
 * 不忘初心：像初学者一样拥有一颗谦虚、开放的心态。
 * 李学峰
 */
@Service
public class StudentSrvicelmpl implements StudentService {
    @Autowired
     private StudentDao studentDao;
    @Override
    public Page<Student> findstudents(int pageindex, int pageSize) {
        return studentDao.findAll(new PageRequest(pageindex-1,pageSize));
    }
}
